Repository navigation
Windows support, live dictation, and redesigned model settings - #2
Open
OnlyHelion wants to merge 2 commits into
Open
OnlyHelion wants to merge 2 commits into
OnlyHelion wants to merge 2 commits into
Conversation
OnlyHelion
added a commit
to OnlyHelion/opencode-dictation
that referenced
this pull request
Dec 5, 2026
OnlyHelion
force-pushed
the
windows-live-dictation
branch
from
December 5, 2026 23:57
9b69b1c to
7df0fb0
Compare
OnlyHelion
added a commit
to OnlyHelion/opencode-dictation
that referenced
this pull request
Dec 5, 2026
Windows: managed whisper.cpp runtime auto-downloaded on first use (pinned ggml-org release, checksum-verified, extracted to %LOCALAPPDATA%\opencode-dictation\bin); whisper-cli.exe and whisper-server.exe are looked up there first. macOS paths are unchanged (Homebrew dirs, brew install hint). Live dictation (optional, off by default): rolling audio windows are resampled and transcribed by a resident whisper-server that keeps the model warm across chunks, with a per-chunk fallback to whisper-cli; a final full-recording pass on stop replaces the draft and repairs chunk seams; plain Enter stops the session through the same path as the shortcut. Settings: model row with presets, folder Browse listing .bin files inline, and a Custom typed name; title column pinned to the row top; equal-width Browse/Apply; live-dictation toggle. Tests: 37 unit tests across chunks, server parsing, model-row helpers, settings and discovery. README and AGENTS.md updated for Windows. Signed-off-by: OnlyHelion <onlyhelion@users.noreply.github.com>
OnlyHelion
force-pushed
the
windows-live-dictation
branch
from
December 6, 2026 00:08
7df0fb0 to
5d0e8ba
Compare
1 task done
Applies the comment audit: rewrite false or stale comments, cut ones that restate the code, and drop pointers to the deleted model-row prototype. Code changes: remove the duplicate stopChunkServer() call in discard() (endLive() already makes it), share SOUND_LEVEL from chunks.ts instead of two copies, and delete the unused modelFileLabel helper and its test. dist/ rebuilt. Signed-off-by: OnlyHelion <onlyhelion@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
Windows support. The plugin previously assumed macOS (whisper-cli via Homebrew). On Windows it now auto-downloads a managed whisper.cpp runtime on first use - a pinned
ggml-org/whisper.cppCI release, checksum-verified, extracted into%LOCALAPPDATA%\opencode-dictation\bin- and looks forwhisper-cli.exe/whisper-server.exethere first. macOS behavior is preserved: the Homebrew dirs (/opt/homebrew/bin,/usr/local/bin) are still searched, and a missingwhisper-clishows the "Install it withbrew install whisper-cpp" hint instead of a download prompt.Live dictation (optional, off by default). The transcript updates as you talk: rolling audio windows are resampled to 16 kHz and transcribed by a resident
whisper-serverthat keeps the model warm across chunks, with a per-chunk fallback towhisper-cliwhen the server is unavailable or a chunk fails (a failed slot stays poisoned for the session rather than being retried on every chunk). On stop, a final cleanup pass re-transcribes the whole recording and replaces the draft, repairing chunk seams. A plain Enter during a session stops it through the same path as the shortcut, so a raw draft is never sent without the cleanup pass.Redesigned Settings -> Dictation. The model row offers presets, or Browse picks a folder and lists its
.binmodels inline (the saved one gets the check), plus a Custom typed-name field. The title/description column is pinned to the row top so the folder panel is the only thing that grows, the panel stays open until the settings menu is left, and Browse/Apply are equal width. New "Live dictation" toggle.Tests + docs. 37 unit tests covering chunking/resampling/dedupe, server response parsing and the multipart body builder, model-row helpers, settings validation, and model/binary discovery. README and AGENTS.md updated for Windows.
Testing
whisper-serverthe brew formula ships, the darwin hint), but they were not re-run on a Mac during this work - flagging that for any reviewer with a Mac handy.dist/gui-experimental.cjsis rebuilt from source.